<template>
  <div class="operationCard-wrapper" :style="{borderColor: borderColor}">
    <h5 class="operationCard-title">{{title}}</h5>
    <h6 class="operationCard-subTitle">{{subTitle}}</h6>
    <img :src="url" alt="">
  </div>
</template>

<script>
  export default {
    name: "OperationCard",
    props: {
      title: String,
      subTitle: String,
      url: String,
      borderColor: String
    }
  };
</script>

<style lang="less">
  .operationCard-wrapper {
    width: 170px;
    height: 170px;
    padding: 20px;
    background-color: #003CFF;
    border: 1px solid;
    text-align: left;
    border-radius: 15px;
    margin: 20px;
    position: relative;

    .operationCard-title {
      width: 100px;
      padding: 10px 0;
      position: relative;
      margin-bottom: 10px;

      &::after {
        content: '';
        width: 100%;
        height: 2px;
        background-color: #F46A1E;
        position: absolute;
        top: 100%;
        left: 0;
      }
    }
    img {
      position: absolute;
      right: 20px;
      bottom: 20px;
      width: 30px;
      height: 30px;
    }
  }
@media screen and (max-width: 768px) {
  .operationCard-wrapper {
    width: 170px;
    height: 170px;
    padding: 20px;
    background-color: #003CFF;
    border: 1px solid;
    text-align: left;
    border-radius: 15px;
    margin: 20px;
    position: relative;

    .operationCard-title {
      width: 100px;
      padding: 10px 0;
      position: relative;
      margin-bottom: 10px;

      &::after {
        content: '';
        width: 100%;
        height: 2px;
        background-color: #F46A1E;
        position: absolute;
        top: 100%;
        left: 0;
      }
    }
    img {
      position: absolute;
      right: 20px;
      bottom: 20px;
      width: 30px;
      height: 30px;
    }
  }
}
</style>
